package ExerciseThree;

public class Person {

	String name;
	int age;
	private int id;
	
	public Person()
	{
		
	}
	
	public Person(String name,int age,int id)
	{
		this.age = age;
		this.id = id;
		this.name = name;
	}
	
	public void setId(int id)
	{
		this.id = id;
	}
	
	public int getId()
	{
		return id;
	}
	public void eat()
	{
		System.out.println("吃饭");
	}
	
	public void sleep()
	{
		System.out.println("睡觉");
		//eat();
	}
}
